function main() {

    api.EXEC_FORMULA("INSERT('t_6a61e2ec8fd84ddbac44b0ba2192b3dd',['list_name','" + list_name
        + "','public_type_id'," + public_type_id
        + ",'public_type','" + public_type
        + "','list_desc','" + list_desc
        + "','valid_flag'," + valid_flag
        + ",'delete_flag'," + delete_flag
        + ",'create_time','" + create_time
        + "','update_time','" + update_time + "'])").then((res) => {
        if (res.result) {
            documentNo = res.result.id;
            jumpToPage(self, documentNo)
        }
    });
}


function insertHandleRecord(recordData) {

    const insertHandleRecords = [
        ['record_uid', 'UUID()'],
        ['relation_id', `'${recordData.replyId}'`],
        ['record_type', `'${recordData.recordType}'`],
        ['record_title', `'${recordData.recordTitle}'`],
        ['record_content', `'${recordData.recordContent}'`],
        ['create_time', 'NOW()'],
        ['create_human_id', 'USER_ID()'],
        ['relation_reply_id', `'${recordData.relationReplyId}'`]
    ];

    const formattedFields = insertHandleRecords.map(([key, value]) => {
        return `'${key}',${value}`;
    });

    const law_std_sup_handle_record = "ds_tbl:t_0ff47ea0e3a74ffdbc274409e7103e7e";
    const insertSql = `INSERT('${law_std_sup_handle_record}', [${formattedFields.join(',')}])`;
    console.log(insertSql);


    return new Promise((resolve, reject) => {
        api.EXEC_FORMULA(insertSql).then(res => {
            console.log(res);
            resolve(res);
        })
    })

}

